google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-02-25',121231,null,null,null,null], ['2024-02-26',121326,null,null,null,null], ['2024-02-27',121391,null,null,null,null], ['2024-02-28',121473,null,null,null,null], ['2024-02-29',121473,null,null,null,null], ['2024-03-01',121575,null,null,null,null], ['2024-03-02',121629,null,null,null,null], ['2024-03-03',121706,null,null,null,null], ['2024-03-04',121706,null,null,null,null], ['2024-03-05',121797,null,null,null,null], ['2024-03-06',121847,null,null,null,null], ['2024-03-07',121922,null,null,null,null], ['2024-03-08',121970,null,null,null,null], ['2024-03-09',122026,null,null,null,null], ['2024-03-10',122086,null,null,null,null], ['2024-03-11',122188,null,null,null,null], ['2024-03-12',122299,null,null,null,null], ['2024-03-13',122377,null,null,null,null], ['2024-03-14',122432,null,null,null,null], ['2024-03-15',122432,null,null,null,null], ['2024-03-16',122567,null,null,null,null], ['2024-03-17',122622,null,null,null,null], ['2024-03-18',122763,null,null,null,null], ['2024-03-19',122798,null,null,null,null], ['2024-03-20',122863,null,null,null,null], ['2024-03-21',122947,null,null,null,null], ['2024-03-22',123014,null,null,null,null], ['2024-03-23',123062,null,null,null,null], ['2024-03-24',123062,null,null,null,null], ['2024-03-25',123127,null,null,null,null], ['2024-03-26',123215,null,null,null,null], ['2024-03-27',123215,null,null,null,null], ['2024-03-28',123348,null,null,null,null], ['2024-03-29',123413,null,null,null,null], ['2024-03-30',123413,null,null,null,null], ['2024-03-31',123413,null,null,null,null], ['2024-04-01',123413,null,null,null,null], ['2024-04-02',123413,null,null,null,null], ['2024-04-03',123413,null,null,null,null], ['2024-04-04',123812,null,null,null,null], ['2024-04-05',123873,null,null,null,null], ['2024-04-06',123929,null,null,null,null], ['2024-04-07',123975,null,null,null,null], ['2024-04-08',124096,null,null,null,null], ['2024-04-09',124138,null,null,null,null], ['2024-04-10',124179,null,null,null,null], ['2024-04-11',124216,null,null,null,null], ['2024-04-12',124262,null,null,null,null], ['2024-04-13',124262,null,null,null,null], ['2024-04-14',124307,null,null,null,null], ['2024-04-15',124396,null,null,null,null], ['2024-04-16',124499,null,null,null,null], ['2024-04-17',124543,null,null,null,null], ['2024-04-18',124576,null,null,null,null], ['2024-04-19',124635,null,null,null,null], ['2024-04-20',124697,null,null,null,null], ['2024-04-21',124749,null,null,null,null], ['2024-04-22',124830,null,null,null,null], ['2024-04-23',124897,null,null,null,null], ['2024-04-24',124949,null,null,null,null], ['2024-04-25',125021,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });